package com.cc8w.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CompanyPojo {
	private int id=0;
	@NotBlank(message="公司名称不能为空") 
	@Size(min=8, max=30,message = "请检查公司名称的长度是否有问题")
	private String c_name="";
	private CompanyTypePojo c_type=null;
	private String c_tel="";
	private String c_wx="";
	private String c_logo="";
	private String c_addr="";
	private String c_desc="";
	private Date c_create=null;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getC_name() {
		return c_name;
	}
	public void setC_name(String c_name) {
		this.c_name = c_name;
	}
	public CompanyTypePojo getC_type() {
		return c_type;
	}
	public void setC_type(CompanyTypePojo c_type) {
		this.c_type = c_type;
	}
	public String getC_tel() {
		return c_tel;
	}
	public void setC_tel(String c_tel) {
		this.c_tel = c_tel;
	}
	public String getC_wx() {
		return c_wx;
	}
	public void setC_wx(String c_wx) {
		this.c_wx = c_wx;
	}
	public String getC_logo() {
		return c_logo;
	}
	public void setC_logo(String c_logo) {
		this.c_logo = c_logo;
	}
	public String getC_addr() {
		return c_addr;
	}
	public void setC_addr(String c_addr) {
		this.c_addr = c_addr;
	}
	public String getC_desc() {
		return c_desc;
	}
	public void setC_desc(String c_desc) {
		this.c_desc = c_desc;
	}
	public Date getC_create() {
		return c_create;
	}
	public void setC_create(Date c_create) {
		this.c_create = c_create;
	}
	@Override
	public String toString() {
		return "CompanyPojo [id=" + id + ", c_name=" + c_name + ", c_type=" + c_type + ", c_tel=" + c_tel + ", c_wx="
				+ c_wx + ", c_logo=" + c_logo + ", c_addr=" + c_addr + ", c_desc=" + c_desc + ", c_create=" + c_create
				+ "]";
	}
	

	
}
